<?php

/**
 *  后台继承类
 * @file   Admin.php  
 * @date   2016-8-23 19:45:21 
 * @author Zhenxun Du<5552123@qq.com>  
 * @version    SVN:$Id:$ 
 */
namespace app\admin\controller;

use think\Loader;

class Dividend extends Common {

    public function _initialize(){

        $this->standby = new \app\admin\model\Standby();
        $this->securitie = new \app\admin\model\Securities();
    }

    //ROE20管理
    public function index() {

        $lists = null;
        $lists = $this->standby->standbyList(['status'=>6]);
        $this->assign('lists', $lists);
        return $this->fetch();
    }

    //删除
    public function del() {

        $data = input();
        $this->securitie->securitieInfoUpdate($data['sid'], $data['stock_code'],['status'=>$data['status']]);
        $this->success('操作成功', url('index'));
    }
}